import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '设备名称',
    align: "center",
    dataIndex: 'deviceName'
  },
  {
    title: '设备型号',
    align: "center",
    dataIndex: 'deviceModel'
  },
  {
    title: '设备价格',
    align: "center",
    dataIndex: 'devicePrice'
  },
  {
    title: '设备大小',
    align: "center",
    dataIndex: 'deviceSize'
  },
  {
    title: '设备缩略图',
    align: "center",
    dataIndex: 'deviceThumbnail',
    customRender: render.renderImage,
  },
  {
    title: '设备库存数量',
    align: "center",
    dataIndex: 'deviceStockCount'
  },
];

// 高级查询数据
export const superQuerySchema = {
  deviceName: {title: '设备名称',order: 0,view: 'text', type: 'string',},
  deviceModel: {title: '设备型号',order: 1,view: 'text', type: 'string',},
  devicePrice: {title: '设备价格',order: 2,view: 'number', type: 'number',},
  deviceSize: {title: '设备大小',order: 3,view: 'text', type: 'string',},
  deviceThumbnail: {title: '设备缩略图',order: 5,view: 'image', type: 'string',},
  deviceStockCount: {title: '设备库存数量',order: 6,view: 'number', type: 'number',},
};
